<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is index page">
<title>浙江在线保险网</title>
<style type="text/css">
<!--
.nav11 {font-size:14px; font-weight:bold; color:#FFF;}
.nav12 {font-size:13px; color: #666;}
.lid {font-size:12px; color: #FFF;}
.wb {font-size:16px; font-weight:bold; font-style:oblique; color: #FF9307;}
.wb2 {font-size:15px; color: #535353;}
.wb3 {font-size:12px; color: #A8A8A8;}
.wb4 {font-size:14px; color: #666;}
.but {font-size:14px;color: #FFF;background-repeat: no-repeat;}
.b1 {font-size:15px; font-family:"黑体", "微软雅黑"; color: #535353;}
.b2 {font-size:14px; color: #999;}
.h {font-size:15px; font-family:"黑体", "微软雅黑"; color: #F35300;}
.h2 {border-bottom:#999 1px dotted;}
.h3 {font-size:13px; font-family:"黑体", "微软雅黑"; color: #666;}
.h4 {font-size:13px; font-family:"黑体", "微软雅黑"; color:#FFF;}
.h5 {font-size:13px; font-family:"黑体", "微软雅黑"; color: #F35300;}
.h6 {font-size:13px; color: #666;}
.h7 {font-size:15px; font-family:"黑体", "微软雅黑"; font-weight:bold; color: #535353;}
.h8 {font-size:15px; font-family:"黑体", "微软雅黑"; font-weight:bold; font-style:oblique; color: #F30;}
-->
</style>
</head>

<body>
<div style="width:903px; margin:46px auto;"> 
 <div style="width:903px; height:52px;">
  <div style="width:126px; height:52px; overflow:hidden; float:left;"><img src="<%=request.getContextPath()%>/images/1.jpg"  /></div>
  <div style="width:764px; height:52px; overflow:hidden; margin-left:10px; float:left;"><img src="<%=request.getContextPath()%>/images/2.jpg" width="765" /></div>
 </div>
 <div class="nav11" style="width:893px; height:33px; line-height:33px; padding-left:10px; overflow:hidden; background-repeat:no-repeat; background-image:url(<%=request.getContextPath()%>/images/3.jpg); float:left;">
 <a href ="<%=request.getContextPath()%>/home/index!index.do">首页</a>
 &nbsp;&nbsp;&nbsp;&nbsp; <a href ="<%=request.getContextPath()%>/question/indexQuestion!index.do" target="_blank">问吧</a>
 &nbsp;&nbsp;&nbsp;&nbsp; <a href ="<%=request.getContextPath()%>/product/indexProduct!index.do" target="_blank">保险产品</a>
 &nbsp;&nbsp;&nbsp;&nbsp; <a href ="<%=request.getContextPath()%>/agent/indexAgent!index.do" target="_blank">找营销员</a>
 &nbsp;&nbsp;&nbsp;&nbsp; <a href ="<%=request.getContextPath()%>/caze/indexCaze!index.do" target="_blank">保险案例</a>
 &nbsp;&nbsp;&nbsp;&nbsp; <a href ="<%=request.getContextPath()%>/agent/loginAgent!loginUI.do" target="_blank">营销员专区</a>
 &nbsp;&nbsp;&nbsp;&nbsp; <a href ="<%=request.getContextPath()%>/user/loginUser!loginUI.do" target="_blank">用户登录</a>
 </div>
 <div class="nav12" style="width:873px; height:28px; line-height:28px; padding-left:30px; background-image:url(<%=request.getContextPath()%>/images/4.jpg); overflow:hidden; float:left;">
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=0 " target="_blank">重大疾病</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=1 " target="_blank">商业医疗</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=2 " target="_blank">商业养老</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=3 " target="_blank">分红保险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=4 " target="_blank">万能保险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=5 " target="_blank">投资连结</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=6 " target="_blank">少儿保险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=7 " target="_blank">女性保险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=8 " target="_blank">旅游保险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=9 " target="_blank">定期寿险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=10" target="_blank">终身寿险</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
 <a href ="<%=request.getContextPath()%>/product/listByType!type.do?type=11" target="_blank">意外保险</a></div>
   	
  	<a href="<%=request.getContextPath()%>/blog/agentBlog!alist.do">管理日志</a>
	<a href="<%=request.getContextPath()%>/blog/addBlog!addUI.do">新增日志</a>
	<a href="<%=request.getContextPath()%>/caze/agentCaze!alist.do">管理案例</a>
	<a href="<%=request.getContextPath()%>/caze/addCaze!addUI.do">新增案例</a>
	<a href="<%=request.getContextPath()%>/product/agentProduct!alist.do">管理产品</a>
 <br>
 
  <table>
   	<s:form action="add" namespace="/caze" onsubmit='return checkform();'>
   		<tr>
   		<td>案例名称:</td>
   		<td><s:textfield name="caze.cazeName" value="%{caze.cazeName}"/></td>
   		</tr>
   		<tr>
   		<td>所属险种:</td>
   		<td><s:select list="#{'':'请选择','0':'重大疾病保险','1':'商业医疗保险','2':'商业养老保险',
   		'3':'分红保险','4':'万能险','5':'投资连结险','6':'少儿保险','7':'女性保险',
   		'8':'旅游保险','9':'定期寿险','10':'终身寿险','11':'意外险'}" name="caze.cazeType"/></td>
   		</tr>
  		<tr><td>客户需求:</td>
  		<td><s:textarea name="caze.customerDemand" value="%{caze.customerDemand}" cols="102" rows="5"/></td>
  		</tr>
  		<tr>
  		<td>客户信息:</td>
  		<td><s:textarea name="caze.customerInformation" value="%{caze.customerInformation}" cols="102" rows="5"/></td>
  		</tr>
  		<tr>
  		<td>案例内容:</td>
  		<td><s:textarea name="caze.content" value="%{caze.content}" cols="102" rows="12"/></td>
   		</tr>
   		<input type="submit" value="确认"/>
   	</s:form>
   	</table>
  </body>
</html>
<script type="text/javascript">
function checkform()
  {
  if(document.forms[0]["caze.cazeName"].value.length ==0 )
  {
  alert("案例名称不能为空");
  return false;
  }
  if(document.forms[0]["caze.cazeType"].value.length ==0 )
  {
  alert("所属险种不能为空");
  return false;
  }
  if(document.forms[0]["caze.customerDemand"].value.length==0)
  {
  alert("客户需求不能为空");
  return false;
  }
  if(document.forms[0]["caze.customerInformation"].value.length==0)
  {
  alert("客户信息不能为空");
  return false;
  }
  if(document.forms[0]["caze.content"].value.length==0)
  {
  alert("案例内容不能为空");
  return false;
  }
  return true;
  }
</script>